package com.young.springdemo.service.prototypePattern;

import lombok.Data;

//周报
@Data
public class WeekLog implements Cloneable{

    private String name;
    private String user;
    private Attachment attachment;

    //实现浅克隆
    public WeekLog clone() throws CloneNotSupportedException {
        Object object = null;
        object = super.clone();
        return (WeekLog)object;
    }
}
